<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Macros and Functions (GNU Compiler Collection (GCC) Internals)</title>

<meta name="description" content="Macros and Functions (GNU Compiler Collection (GCC) Internals)">
<meta name="keywords" content="Macros and Functions (GNU Compiler Collection (GCC) Internals)">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Option-Index.html" rel="index" title="Option Index">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="Tree-overview.html" rel="up" title="Tree overview">
<link href="Identifiers.html" rel="next" title="Identifiers">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en">
<div class="subsection-level-extent" id="Macros-and-Functions">
<div class="nav-panel">
<p>
Next: <a href="Identifiers.html" accesskey="n" rel="next">Identifiers</a>, Up: <a href="Tree-overview.html" accesskey="u" rel="up">Overview</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Option-Index.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsection" id="Trees"><span>11.2.1 Trees<a class="copiable-link" href="#Trees"> &para;</a></span></h4>
<a class="index-entry-id" id="index-tree-1"></a>
<a class="index-entry-id" id="index-TREE_005fCHAIN"></a>
<a class="index-entry-id" id="index-TREE_005fTYPE"></a>

<p>All GENERIC trees have two fields in common.  First, <code class="code">TREE_CHAIN</code>
is a pointer that can be used as a singly-linked list to other trees.
The other is <code class="code">TREE_TYPE</code>.  Many trees store the type of an
expression or declaration in this field.
</p>
<p>These are some other functions for handling trees:
</p>
<dl class="ftable">
<dt><a id="index-tree_005fsize"></a><span><code class="code">tree_size</code><a class="copiable-link" href="#index-tree_005fsize"> &para;</a></span></dt>
<dd><p>Return the number of bytes a tree takes.
</p>
</dd>
<dt><a id="index-build0"></a><span><code class="code">build0</code><a class="copiable-link" href="#index-build0"> &para;</a></span></dt>
<dt><a id="index-build1"></a><span><code class="code">build1</code><a class="copiable-link" href="#index-build1"> &para;</a></span></dt>
<dt><a id="index-build2"></a><span><code class="code">build2</code><a class="copiable-link" href="#index-build2"> &para;</a></span></dt>
<dt><a id="index-build3"></a><span><code class="code">build3</code><a class="copiable-link" href="#index-build3"> &para;</a></span></dt>
<dt><a id="index-build4"></a><span><code class="code">build4</code><a class="copiable-link" href="#index-build4"> &para;</a></span></dt>
<dt><a id="index-build5"></a><span><code class="code">build5</code><a class="copiable-link" href="#index-build5"> &para;</a></span></dt>
<dt><a id="index-build6"></a><span><code class="code">build6</code><a class="copiable-link" href="#index-build6"> &para;</a></span></dt>
<dd>
<p>These functions build a tree and supply values to put in each
parameter.  The basic signature is &lsquo;<samp class="samp">code,&nbsp;type,&nbsp;[operands]<!-- /@w --></samp>&rsquo;.
<code class="code">code</code> is the <code class="code">TREE_CODE</code>, and <code class="code">type</code> is a tree
representing the <code class="code">TREE_TYPE</code>.  These are followed by the
operands, each of which is also a tree.
</p>
</dd>
</dl>



</div>



</body>
</html>
